Skip to content

DataGrid - Fix the "No data" text not being shown when a lookup column is filtered (T1293839)#32757

Open
markallenramirez wants to merge 18 commits intoDevExpress:26_1from
markallenramirez:bug_T1293839/26_1
Open

DataGrid - Fix the "No data" text not being shown when a lookup column is filtered (T1293839)#32757
markallenramirez wants to merge 18 commits intoDevExpress:26_1from
markallenramirez:bug_T1293839/26_1

Conversation

@markallenramirez
Copy link
Contributor

No description provided.

@markallenramirez markallenramirez self-assigned this Mar 3, 2026
Copilot AI review requested due to automatic review settings March 3, 2026 10:01
@markallenramirez markallenramirez requested a review from a team as a code owner March 3, 2026 10:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an E2E regression test to ensure DataGrid renders the “No data” text after filtering a lookup column, covering the scenario described in the PR title.

Changes:

  • Import List TestCafe model to interact with the lookup dropdown.
  • Add a new screenshot-based TestCafe test reproducing “lookup filter + text filter => no data” state.

@markallenramirez markallenramirez changed the title DataGrid - Fix the "No data" text not being shown when a lookup column is filtered DataGrid - Fix the "No data" text not being shown when a lookup column is filtered (T1293839) Mar 3, 2026
Copilot AI review requested due to automatic review settings March 3, 2026 11:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings March 4, 2026 12:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings March 5, 2026 08:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings March 6, 2026 12:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.


// act
await t.click(lookupFilterCell.element);
const lookupList = new List(OVERLAY_SELECTOR);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment: I suggest creating a getLookup/getSelectBox method at the FilterCell model level, which will return the SelectBox model. This model has the necessary API for testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of creating another method, I refactored FilterCell and related DataGrid methods.

Before:
DataGrid.getFilterRow returns Selector
DataGrid.getFilterCell returns Selector
filterTextBox extends an editor and exposes a filter cell's filter operations menu
DataGrid.getFilterEditor returns EditorType, but based only on defined filter editors (currently only filterTextBox exists)

After:
DataGrid.getFilterRow returns FilterRow (now use filterRow.element to get element Selector)
DataGrid.getFilterCell returns FilterCell (now use filterRow.element to get element Selector)
FilterCell exposes a filter cell's filter operations menu
DataGrid.getFilterEditor can now accept any base editor type (e.g., TextBox, SelectBox, etc.)

Copilot AI review requested due to automatic review settings March 9, 2026 09:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.

await t
.click(filterMenu.menuButton())
.click(filterMenu.menu.getItemByText('Starts with'));
.click(filterCell.menuButton())
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FilterCell.menuButton is a Selector property, but this test calls it as a function (menuButton()). This will either fail TypeScript compilation or pass a NodeSnapshot/promise to t.click, depending on typings, and is inconsistent with the other updated tests. Use the selector property directly (no parentheses).

Suggested change
.click(filterCell.menuButton())
.click(filterCell.menuButton)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants